
package jp.moisture.othello.player;

import jp.moisture.othello.board.Board;
import jp.moisture.othello.board.Cell;
import jp.moisture.othello.board.Game;
import jp.moisture.othello.board.Game.OnGameListener;

public class VirtualGame extends Game implements OnGameListener {

    private int mLimitTurn;

    public VirtualGame(int size, Player player1, Player player2, Board board, int limitTurn) {
        super(size, player1, player2, board);
        mLimitTurn = limitTurn;
    }

    @Override
    public void onStart(Board board) {
        // TODO 自動生成されたメソッド・スタブ

    }

    @Override
    public void onComplete(Board board) {
        // TODO 自動生成されたメソッド・スタブ

    }

    @Override
    public boolean onChangeTurn(Board board, Player player) {
        //        System.out.println(board.getTurnCount() + " : " + mLimitTurn);
        if (!(board.getTurnCount() <= mLimitTurn)) {
            //        System.out.println(board.getTurnCount() + " : " + mLimitTurn + " : " + player);
        }
        //        return (board.getTurnCount() <= mLimitTurn);
        return true;
    }

    @Override
    public void onPutStone(Player player, Board board, Cell cell) {
    }

    @Override
    public void onGiveUp(Player player) {
        // TODO 自動生成されたメソッド・スタブ

    }

}
